﻿using SQLite;

namespace Application
{
    public class CApplication
    {
        [PrimaryKey, AutoIncrement]
        public int ID { get; set; }

        public string Path { get; set; }

        public string Name { get; set; }

        public string Argument { get; set; }

        public string Guid { get; set; }

        /// <summary>
        /// 0:文件, 1: 文件夹
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 是否自动启动，0：不启动， 1：自动启动
        /// </summary>
        public int AutoStart { get; set; }

        public CApplication()
        {
            this.AutoStart = 0;
            this.Argument = "";
        }

        public CApplication Clone()
        {
            CApplication app = new CApplication();
            app.Path = Path;
            app.Name = Name;
            app.Argument = Argument;
            app.Guid = Guid;
            app.Type = Type;
            app.AutoStart = AutoStart;
            return app;
        }
    }
}